#pragma once

#include "GalconCommonTypes.h"

class FlightInfo
{
public:
   FlightInfo();
   ~FlightInfo();

   void AddSrcPlanet(const PlanetShipsCountPair& flightSrcItem)
   {
      m_srcPlanets.insert(flightSrcItem);
   }

   void RemoveSrcPlanet(PlanetID planetID)
   {
      m_srcPlanets.erase(planetID);
   }

   void SetDstPlanetID(PlanetID planetID)
   {
      m_dstPlanet = planetID;
   }

   PlanetID GetDstPlanetID() const
   {
      return m_dstPlanet;
   }

   const PlanetIDMap& GetSrcPlanets() const
   {
      return m_srcPlanets;
   }

   PlayerID DstPlayerID() const
   {
      return m_dstPlayerID;
   }

   void DstPlayerID(PlayerID val) 
   {
      m_dstPlayerID = val;
   }

private:

   PlanetIDMap m_srcPlanets;
   PlanetID m_dstPlanet;
   PlayerID m_dstPlayerID;
};

